from core import *

from ..modules import *


class Agriculture(Category):
    id   =_ ('agriculture')
    name =_ ('Agriculture')
    icon =_ ('Worker')

    class Planting(Category):
        id        =_ ('planting')
        name      =_ ('Plantations & Plants')
        icon      =_ ('Worker')
        buildings =_ (Plantation, AppleTree, OliveTree, Grapevine)
    
    class Farming(Category):
        id        =_ ('farming')
        name      =_ ('Farms & Fields')
        icon      =_ ('Worker')
        buildings =_ (Farm, CarrotField, WheatField, DyePlantField, FlaxField)
    
    class Ranching(Category):
        id        =_ ('ranching')
        name      =_ ('Ranches & Ranges')
        icon      =_ ('Worker')
        buildings =_ (Ranch, CowRange, SheepRange)
    
    class Other(Category):
        id        =_ ('other')
        name      =_ ('Fishing & Beekeeping')
        icon      =_ ('Worker')
        buildings =_ (Fishery, Beekeeper)
    
    class Cornucopias(Category):
        id        =_ ('cornucopias')
        name      =_ ('Cornucopias')
        icon      =_ ('Coin')
        buildings =_ (Cornucopia.__subclasses__())
    
    subcategories =_ (Planting, Farming, Ranching, Other, Cornucopias)
